package org.grottarossa.ui.core.container;


import java.util.Hashtable;

import com.vaadin.data.util.IndexedContainer;

public class HashtableContainer <T1, T2> extends IndexedContainer
{
	public HashtableContainer(Hashtable<T1, T2> hash, Class<T1> t1, Class<T2> t2)
	{
		addContainerProperty("key", t1, null);
		addContainerProperty("value", t2, null);

		for (T1 user: hash.keySet())
		{
			Object obj = addItem();
			/*getContainerProperty(obj, LOGINID).setValue(user.getLoginID());
			getContainerProperty(obj, DISPLAY_NAME).setValue(user.getDisplayName());*/
		}
	}
}
